package parttern.singleton;

public class SingleInstanceLazy {

    private static SingleInstanceLazy instance;

    private SingleInstanceLazy() {

    }

    public synchronized static SingleInstanceLazy getInstance() {
        if (null == instance) {
            instance = new SingleInstanceLazy();
        }

        return instance;
    }

    public void show() {
        System.out.println("SingleInstanceLazy show():" + this.hashCode());
    }
}
